package com.starryx.driverschool.service;

import com.starryx.driverschool.po.Score;
import com.starryx.driverschool.vo.ScoreQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface ScoreService {

    // 查询所有用户
    List<Score> listScore();

    // 分页查询所有用户
    Page<Score> listScore(Pageable pageable);

    // 分页查询所有用户
    Page<Score> listScore(Pageable pageable, ScoreQuery scoreQuery);

    // 保存
    Score saveScore(Score score);

    // 根据 id 查询
    Score getScore(Long id);

    // 根据 id 删除
    void deleteScore(Long id);
}
